package com.ruoyi.consumer.carType.domain;

import com.ruoyi.consumer.carBrand.domain.CarBrand;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 车辆类型对象 car_type
 * 
 * @author ruoyi
 * @date 2025-02-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CarType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 所属品牌 */
    @Excel(name = "所属品牌")
    private Integer bid;

    /** 车型 */
    @Excel(name = "车型")
    private String typeName;

    private String carBrand;
    private String brandName;

    public String getCarBrand() {
        return carBrand;
    }

    public void setCarBrand(CarBrand carBrand) {
        if (carBrand != null) {
            // 假设取品牌名称作为字符串值
            this.carBrand = carBrand.getBrandName();
        }
    }

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String del;


}
